export const tableOption = {
    // 是否显示表格边框
    border: true,
    // 是否显示表格的斑马条纹
    stripe: false,
    // 菜单栏对齐方式
    menuAlign: 'center',
    // 列的对齐方式
    align: 'center',
    showClomnuBtn: false,
    // 搜索按钮间距
    searchMenuSpan: 4,
    // 搜索控件的大小small/mini
    searchSize: 'mini',
    // 操作菜单栏的宽度
    menuWidth: 200,
    column: [{
        width: 50,
        label: 'ID',
        prop:'id',
        search: true,
        editDisplay: false,
        addDisplay: false,
    },{
        label: '分类',
        prop:'project',
        search: true,
    },{
        label: '字典类型',
        prop:'type',
        search: true,
        rules: [{
            required: true,
            message: '请输入type',
            trigger: 'blur'
        }]
    },{
        label: 'Key',
        prop: 'dictKey',
        search: true,
        editDisabled: false,
        rules: [{
            required: true,
            message: '请输入key',
            trigger: 'blur'
        }]
    }, {
        label: 'Value',
        prop: 'dictValue',
        type: 'textarea',
        search: true,
        editDisabled: false,
        rules: [{
            required: true,
            message: '请输入value',
            trigger: 'blur'
        }]
    }, {
        minWidth: 250,
        label: '描述',
        type: 'textarea',
        prop: 'description',
        editDisabled: false
    },  {
        width: 150,
        label: '创建时间',
        prop: 'createDate',
        type: 'datetime',
        addDisplay: false,
        editDisplay: false,
        hide: true,
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
    },{
        label: '创建者',
        prop: 'createBy',
        search: true,
        hide:true,
        editDisplay: false,
        addDisplay: false,
    }, {
        width: 150,
        label: '修改时间',
        prop: 'updateDate',
        type: 'datetime',
        editDisplay: false,
        addDisplay: false,
        hide:true,
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
    }, {
        label: '修改者',
        prop: 'updateBy',
        search: true,
        editDisplay: false,
        hide:true,
        addDisplay: false,
    }, {
        width: 50,
        label: '废弃',
        prop: 'delFlag',
        addDisplay: false,
        search: true,
        hide:true,
        type: 'select',
        dicData: [{label: '是',value: true},{label: '否',value: false}]
    }]
}

export const dictTreeOption = {
    border: true,
    stripe: false,
    menuAlign: 'center',
    align: 'center',
    showClomnuBtn: false,
    defaultExpandAll: true,
    refreshBtn: true,
    columnBtn: false,//列显隐按钮
    addBtn: false,
    index: true,
    menuWidth: 300,
    column: [/*{
        label: 'ID',
        prop:'id',
        editDisplay:false,
        addDisplay:false,
        align: 'left',
        hide: true,
    },{
        label: '字典类型',
        prop:'type',
        type:'input',
        editDisplay:false,//表单编辑是否可见
        rules: [{
            required: true,
            message: '请输入字典类型',
            trigger: 'blur'
        }],
    }*/{
        width: 300,
        align: 'left',
        label: '关键字',
        prop: 'key',
        editDisabled: false,
        rules: [{
            required: true,
            message: '请输入字典的关键字',
            trigger: 'blur'
        }]
    }, {
        label: '字典值',
        type: 'textarea',
        prop: 'value',
        editDisabled: false,
        rules: [{
            required: true,
            message: '请输入字典值',
            trigger: 'blur'
        }]
    },{
        label: '描述',
        type: 'textarea',
        prop: 'description',
        editDisabled: false
    }, {
        width: 50,
        label: '排序',
        type: 'number',
        prop: 'sort',
        editDisabled: false
    }, {
        width: 120,
        label: '创建时间',
        prop: 'createDate',
        type: 'datetime',
        addDisplay: false,
        editDisplay: false,
        format: 'yyyy-MM-dd HH:mm',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
    },{
        label: '创建者',
        prop: 'createBy',
        //editDisabled: true,
        editDisplay: false,
        addDisplay: false,
    }, {
        width: 120,
        label: '修改时间',
        prop: 'updateDate',
        type: 'datetime',
        editDisplay: false,
        addDisplay: false,
        format: 'yyyy-MM-dd HH:mm',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
    }, {
        label: '修改者',
        prop: 'updateBy',
        editDisplay: false,
        addDisplay: false,
    }, {
        width: 50,
        label: '废弃',
        prop: 'delFlag',
        editDisplay:false,
        type: 'select',
        dicData: [
            {
                label: '是',
                value: true
            },
            {
                label: '否',
                value: false
            }
        ]
    }, {
        label: '备注信息',
        prop: 'remark',
    }, ]
}
